package cn.zhku.edu.orderservice.mapper;

import cn.zhku.edu.feign.pojo.bo.Orderdetail;
import cn.zhku.edu.feign.pojo.entry.Order;
import cn.zhku.edu.feign.pojo.entry.Product;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author clk
 */
@Repository
public interface OrderMapper extends BaseMapper<Order> {
    int deleteByPrimaryKey(Order order);

    int insert(Order record);

    int insertdetail(Orderdetail order);

    int insertSelective(Order record);

    List<Order> selectByPrimaryKey(String uid);

    List<Orderdetail> selectAllOrder(String uid);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    int insertOrderDetail(Orderdetail orderdetail);
}